package com.chen.gulimall.gulimallproduct.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.chen.gulimall.gulimallproduct.vo.AttrGroupWithAttrVo;
import com.chen.gulimall.gulimallproduct.vo.AttrRespVo;
import com.chen.gulimall.gulimallproduct.vo.AttrVo;
import com.chen.gulimallcommon.common.utils.PageUtils;
import com.chen.gulimall.gulimallproduct.entity.AttrEntity;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author mr.chen
 * @email 3061634906@qq.com
 * @date 2022-04-19 17:30:10
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveAttrVo(AttrVo attrVo);

    PageUtils queryBaseList(Map<String, Object> params, Long catelongId, String type);

    AttrRespVo getAttrId(Long attrId);

    void updateAttr(AttrRespVo attr);

    List<AttrEntity> getAttrRelation(Long attrgroupId);

    PageUtils getAttrNoRelation(Long attrgroupId, Map<String, Object> params);

    List<Long> selectAttrByIds(List<Long> attrIds);
}

